package cn.itsource.basic.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.util.PageBean;

import java.util.List;

public interface IBaseService<T> {
    boolean add(T t);
    boolean update(T t);
    boolean del(Long id);
    boolean batchRemove(List<Long> id);
    T findById(Long id);
    List<T> findAll();
    PageBean<T> findByPage(BaseQuery query);

}
